package jp.ac.aiit.yc.softarch.hbcp.service.kj;

import java.util.ArrayList;
import java.util.List;


import jp.ac.aiit.yc.softarch.hbcp.model.kj.History;
import jp.ac.aiit.yc.softarch.hbcp.service.common.CalendarUtil;
import jp.ac.aiit.yc.softarch.hbcp.service.common.DataAccessObject;

public class HistoryManagementService {
	protected static List<History> history = new ArrayList<History>();

	static {
		System.out.println("initializing HistoryManagemrntService");
		try{
			history = DataAccessObject.readHistory();
		}catch(Exception e){
			System.out.println(e);
		}
	}

	public List<History> getHistory() {//登録されているヒストリを返すメソッド
		System.out.println("doing HistoryManagemrntService.getHistory() : " + CalendarUtil.nowDate());
		return history;
	}


}
